Don't use g_slist_next in gtkstock.c
authorMatthias Clasen <mclasen@redhat.com>
Tue, 20 Oct 2015 00:34:58 +0000 (20:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Oct 2015 10:14:57 +0000 (06:14 -0400)
We generally use ->next directly.

gtk/deprecated/gtkstock.c

index 71f3c69bbfcfb16674560e4c0cfb887f13b24f26..bfc75e7534a5cf3e957b6a38fd23ad9655743ae4 100644 (file)
@@ -255,7 +255,7 @@ gtk_stock_list_ids (void)
     {
       GList *next;
 
-      next = g_list_next (ids);
+      next = ids->next;
 
       if (last_id && strcmp (ids->data, last_id) == 0)
         {
@@ -268,7 +268,7 @@ gtk_stock_list_ids (void)
         }
 
       g_list_free_1 (ids);
-      
+
       ids = next;
     }